package com.munisense.webservices.javaclient.exceptions;

import java.io.IOException;

public class MuniWebserviceException extends IOException {

	private final int statusCode;
	
	public MuniWebserviceException(int statusCode, String statusMessage, Exception origin)
	  {
	  super(statusMessage, origin);
	  
	  this.statusCode = statusCode;
	  }
	
	public MuniWebserviceException(int statusCode, String statusMessage)
	  {
	  super(statusMessage);
	  
	  this.statusCode = statusCode;
	  }	
	
	
	/**
	 * @return the statusCode
	 */
	public int getStatusCode() {
		return statusCode;
	}


	/**
	 * 
	 */
	private static final long serialVersionUID = 249945435421539113L;

}
